<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>入库登记</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.pager.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	var $deleteDeviceInfoButton = $("#listTable .deleteDeviceInfoButton");
	
	// 删除入库登记信息
	$deleteDeviceInfoButton.click( function() {
		if (confirm("您确定要删除此登记信息吗?") == false) {
			return false;
		}
	});
	});
	</script>
</head>
<body class="list">
	<div class="bar">
		耗材入库登记列表&nbsp;总记录数: ${pager.totalCount} (共${pager.pageCount}页)
	</div>
	<div class="body">
		<form id="listForm" action="list" method="post">
			<table id="listTable" class="listTable">
				<tr>
					<th class="check">
						<input type="checkbox" class="allCheck" />
					</th>
					<th>
						<a href="#" class="sort" name="name" hidefocus>物品名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="standard" hidefocus>型号规格</a>
					</th>
					<th>
						<a href="#" class="sort" name="unit" hidefocus>计量单位</a>
					</th>
					<th>
						<a href="#" class="sort" name="count" hidefocus>数量</a>
					</th>
					<th>
						<a href="#" class="sort" name="price" hidefocus>单价</a>
					</th>
					<th>
						<a href="#" class="sort" name="place" hidefocus>厂家与产地</a>
					</th>
					<th>
						<a href="#" class="sort" name="date" hidefocus>出库日期</a>
					</th>
					<th>
						<a href="#" class="sort" name="deployment" hidefocus>部门名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="labname" hidefocus>实验室名称</a>
					</th>
					<th>
						<span>操作</span>
					</th>
				</tr>
				<#list pager.result as stockItem>
					<tr>
						<td>
							<input type="checkbox" name="ids" value="${stockItem.id}" />
						</td>
						<td>
							${stockItem.consumable.sn}
						</td>
						<td>
							${stockItem.consumable.name}
						</td>
						<td>
							${stockItem.consumable.standard}
						</td>
						<td>
							${stockItem.consumable.unit}
						</td>
						<td>
							${stockItem.count}
						</td>
						<td>
							${stockItem.consumable.price}
						</td>
						<td>
							${stockItem.consumable.place}
						</td>
						<td>
							${stockItem.date}
						</td>
						<td>
							${stockItem.deployment}
						</td>
						<td>
							${stockItem.labname}
						</td>
						<td>
							<a href="${base}/faith/stockitem/delete/${stockItem.id}/0"  class="deleteDeviceInfoButton"  title="删 除">[删除]</a>
						</td>
					</tr>
				</#list>
			</table>
			<#if (pager.result?size > 0)>
				<div class="pagerBar">
					<div class="pager">
						<#include "admin/pager.ftl" />
					</div>
				<div>
			<#else>
				<div class="noRecord">没有找到任何记录!</div>
			</#if>
		</form>
	</div>
</body>
</html>